Skip to content

docs: update mobile SDK integration guides to match current source#787

Open
jaredlockhart wants to merge 1 commit intomainfrom
2026-02-25-mobile-sdk-docs
Open

docs: update mobile SDK integration guides to match current source#787
jaredlockhart wants to merge 1 commit intomainfrom
2026-02-25-mobile-sdk-docs

Conversation

@jaredlockhart
Copy link
Contributor

Summary

Updates the Android and iOS integration guides and Required UI doc to match the current Nimbus SDK source code.

  • Fixes removed API: Replaces globalUserParticipation with experimentParticipation and rolloutParticipation — the property was split into two for separate experiment/rollout control
  • Documents recordedContext: Adds NimbusBuilder section for behavioral targeting context in both Android and iOS guides with cross-links to Recording Targeting Context docs
  • Documents recordMalformedConfiguration(): New section for reporting invalid feature configs as Glean telemetry
  • Documents HardcodedNimbusFeatures: Testing helper section with usage example and key assertion methods (isExposed, getExposureCount, isMalformed, hasFeature)
  • Updates complete examples: Adds recordedContext and featureManifest to NimbusBuilder examples, removes deprecated customTargetingAttributes

Fixes #786

🤖 Generated with Claude Code

Because

* `globalUserParticipation` no longer exists in the SDK — it was split
  into `experimentParticipation` and `rolloutParticipation`
* The `recordedContext` NimbusBuilder option for behavioral targeting
  and Glean recording is undocumented
* `recordMalformedConfiguration()` for reporting invalid feature configs
  is undocumented
* `HardcodedNimbusFeatures` testing helper is undocumented

This commit

* Replaces `globalUserParticipation` in mobile-ui.md with the two
  separate participation properties and explains their distinct behavior
* Adds `recordedContext` section to both Android and iOS integration
  guides with cross-link to Recording Targeting Context docs
* Adds `recordMalformedConfiguration()` section to Android guide
* Adds `HardcodedNimbusFeatures` testing section with usage example
  and key test assertion methods
* Updates complete NimbusBuilder examples in both guides to include
  `recordedContext` and `featureManifest`
* Removes deprecated `customTargetingAttributes` from iOS example

Fixes #786

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

## Unit and UI testing with `HardcodedNimbusFeatures`

The `HardcodedNimbusFeatures` class lets you inject feature configurations directly for unit and UI testing, without a running Nimbus SDK or network connection:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence reads strangely. "Without running Nimbus SDK" ?

)
hardcodedNimbus.connectWith(FxNimbus)

// Access feature values as normal — they'll use the hardcoded config
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Access feature values as normal — they'll use the hardcoded config
// Access feature values as normal — it will use the hardcoded config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update mobile SDK integration guides to match current source

2 participants